<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="ss" %>
<html>
<head>
    <title>职位列表</title>
    <style>
        body {
            margin: 5px;
            background-color: #369;
        }

        #main {
            background-image: url(${pageContext.request.contextPath}/images/bg/bg12.png);
            widtd: 90%;
            margin: 0 auto;
            min-height: 600px;
            padding: 0px 0px;
        }

        .a1 {
            text-align: center;
            color: blue;
            letter-spacing: 10px;
            font-size: 48px;
            font-family: 华文行楷;
            line-height: 120px;
        }

        .a1 span {
            color: red;
        }

        img {
            height: 80px;
        }

        .right {
            position: absolute;
            top: 40px;
            right: 0px;
        }

        #nav {
            background-color: #330;
            line-height: 40px;
            padding: 0px 50px;
            font-size: 14px
        }

        #nav a {
            color: white
        }

        #wall {
            padding: 10px 50px;
        }

        td {
            text-align: center;
            border: none;
            border-bottom: 1px dashed black
        }

        table {
            background-image: url(${pageContext.request.contextPath}/images/bg/bg14.jpg)
        }
    </style>
</head>
<body>
<div id="main">

    <div id="wall">
        <h1 style="text-align:center">职位列表</h1>
        <table border="1px" width="60%" cellspacing="0" align="center" border="0">
            <tbody>
            <tr>
                <td>编号</td>
                <td>职位名称</td>
                <td>基础挂号费</td>
                <td>操作 <a href="#">新增</a></td>
            </tr>

            <tr>
                <td>
                    <form action="" method="get">
                        名称:<input name="findName"><input type="submit" value="搜索">
                    </form>
                </td>
            </tr>

            <c:forEach var="job" items="${list}">

                <tr>
                    <td>${job.id}</td>
                    <td>${job.name}</td>
                    <td>${job.base}</td>
                    <td>
                        <a href="edit?id=${job.id}">修改</a>
                        <a href="del?id=${job.id}" onclick="return confirm(&#39;你确定要删除吗?&#39;);">删除</a>
                    </td>
                </tr>

            </c:forEach>

            </tbody>
        </table>


    </div>
</div>
</body>
</html>